Integrand size = 28, antiderivative size = 76 \[ \int \cos ^5(c+d x) \left (B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\frac {3 B x}{8}+\frac {C \sin (c+d x)}{d}+\frac {3 B \cos (c+d x) \sin (c+d x)}{8 d}+\frac {B \cos ^3(c+d x) \sin (c+d x)}{4 d}-\frac {C \sin ^3(c+d x)}{3 d} \]
3/8*B*x+C*sin(d*x+c)/d+3/8*B*cos(d*x+c)*sin(d*x+c)/d+1/4*B*cos(d*x+c)^3*si n(d*x+c)/d-1/3*C*sin(d*x+c)^3/d
Time = 0.09 (sec) , antiderivative size = 73, normalized size of antiderivative = 0.96 \[ \int \cos ^5(c+d x) \left (B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\frac {3 B (c+d x)}{8 d}+\frac {C \sin (c+d x)}{d}-\frac {C \sin ^3(c+d x)}{3 d}+\frac {B \sin (2 (c+d x))}{4 d}+\frac {B \sin (4 (c+d x))}{32 d} \]
(3*B*(c + d*x))/(8*d) + (C*Sin[c + d*x])/d - (C*Sin[c + d*x]^3)/(3*d) + (B *Sin[2*(c + d*x)])/(4*d) + (B*Sin[4*(c + d*x)])/(32*d)
Time = 0.38 (sec) , antiderivative size = 81, normalized size of antiderivative = 1.07, number of steps used = 11, number of rules used = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.357, Rules used = {3042, 4535, 27, 3042, 3113, 2009, 3115, 3042, 3115, 24}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \cos ^5(c+d x) \left (B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {B \csc \left (c+d x+\frac {\pi }{2}\right )+C \csc \left (c+d x+\frac {\pi }{2}\right )^2}{\csc \left (c+d x+\frac {\pi }{2}\right )^5}dx\) |
\(\Big \downarrow \) 4535 |
\(\displaystyle B \int \cos ^4(c+d x)dx+\int C \cos ^3(c+d x)dx\) |
\(\Big \downarrow \) 27 |
\(\displaystyle B \int \cos ^4(c+d x)dx+C \int \cos ^3(c+d x)dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle B \int \sin \left (c+d x+\frac {\pi }{2}\right )^4dx+C \int \sin \left (c+d x+\frac {\pi }{2}\right )^3dx\) |
\(\Big \downarrow \) 3113 |
\(\displaystyle B \int \sin \left (c+d x+\frac {\pi }{2}\right )^4dx-\frac {C \int \left (1-\sin ^2(c+d x)\right )d(-\sin (c+d x))}{d}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle B \int \sin \left (c+d x+\frac {\pi }{2}\right )^4dx-\frac {C \left (\frac {1}{3} \sin ^3(c+d x)-\sin (c+d x)\right )}{d}\) |
\(\Big \downarrow \) 3115 |
\(\displaystyle B \left (\frac {3}{4} \int \cos ^2(c+d x)dx+\frac {\sin (c+d x) \cos ^3(c+d x)}{4 d}\right )-\frac {C \left (\frac {1}{3} \sin ^3(c+d x)-\sin (c+d x)\right )}{d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle B \left (\frac {3}{4} \int \sin \left (c+d x+\frac {\pi }{2}\right )^2dx+\frac {\sin (c+d x) \cos ^3(c+d x)}{4 d}\right )-\frac {C \left (\frac {1}{3} \sin ^3(c+d x)-\sin (c+d x)\right )}{d}\) |
\(\Big \downarrow \) 3115 |
\(\displaystyle B \left (\frac {3}{4} \left (\frac {\int 1dx}{2}+\frac {\sin (c+d x) \cos (c+d x)}{2 d}\right )+\frac {\sin (c+d x) \cos ^3(c+d x)}{4 d}\right )-\frac {C \left (\frac {1}{3} \sin ^3(c+d x)-\sin (c+d x)\right )}{d}\) |
\(\Big \downarrow \) 24 |
\(\displaystyle B \left (\frac {\sin (c+d x) \cos ^3(c+d x)}{4 d}+\frac {3}{4} \left (\frac {\sin (c+d x) \cos (c+d x)}{2 d}+\frac {x}{2}\right )\right )-\frac {C \left (\frac {1}{3} \sin ^3(c+d x)-\sin (c+d x)\right )}{d}\) |
-((C*(-Sin[c + d*x] + Sin[c + d*x]^3/3))/d) + B*((Cos[c + d*x]^3*Sin[c + d *x])/(4*d) + (3*(x/2 + (Cos[c + d*x]*Sin[c + d*x])/(2*d)))/4)
3.1.45.3.1 Defintions of rubi rules used
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[sin[(c_.) + (d_.)*(x_)]^(n_), x_Symbol] :> Simp[-d^(-1) Subst[Int[Exp and[(1 - x^2)^((n - 1)/2), x], x], x, Cos[c + d*x]], x] /; FreeQ[{c, d}, x] && IGtQ[(n - 1)/2, 0]
Int[((b_.)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[(-b)*Cos[c + d* x]*((b*Sin[c + d*x])^(n - 1)/(d*n)), x] + Simp[b^2*((n - 1)/n) Int[(b*Sin [c + d*x])^(n - 2), x], x] /; FreeQ[{b, c, d}, x] && GtQ[n, 1] && IntegerQ[ 2*n]
Int[(csc[(e_.) + (f_.)*(x_)]*(b_.))^(m_.)*((A_.) + csc[(e_.) + (f_.)*(x_)]* (B_.) + csc[(e_.) + (f_.)*(x_)]^2*(C_.)), x_Symbol] :> Simp[B/b Int[(b*Cs c[e + f*x])^(m + 1), x], x] + Int[(b*Csc[e + f*x])^m*(A + C*Csc[e + f*x]^2) , x] /; FreeQ[{b, e, f, A, B, C, m}, x]
Time = 0.23 (sec) , antiderivative size = 57, normalized size of antiderivative = 0.75
method | result | size |
parallelrisch | \(\frac {36 B x d +3 B \sin \left (4 d x +4 c \right )+24 B \sin \left (2 d x +2 c \right )+72 C \sin \left (d x +c \right )+8 C \sin \left (3 d x +3 c \right )}{96 d}\) | \(57\) |
derivativedivides | \(\frac {B \left (\frac {\left (\cos \left (d x +c \right )^{3}+\frac {3 \cos \left (d x +c \right )}{2}\right ) \sin \left (d x +c \right )}{4}+\frac {3 d x}{8}+\frac {3 c}{8}\right )+\frac {C \left (2+\cos \left (d x +c \right )^{2}\right ) \sin \left (d x +c \right )}{3}}{d}\) | \(60\) |
default | \(\frac {B \left (\frac {\left (\cos \left (d x +c \right )^{3}+\frac {3 \cos \left (d x +c \right )}{2}\right ) \sin \left (d x +c \right )}{4}+\frac {3 d x}{8}+\frac {3 c}{8}\right )+\frac {C \left (2+\cos \left (d x +c \right )^{2}\right ) \sin \left (d x +c \right )}{3}}{d}\) | \(60\) |
risch | \(\frac {3 B x}{8}+\frac {3 C \sin \left (d x +c \right )}{4 d}+\frac {B \sin \left (4 d x +4 c \right )}{32 d}+\frac {\sin \left (3 d x +3 c \right ) C}{12 d}+\frac {B \sin \left (2 d x +2 c \right )}{4 d}\) | \(63\) |
norman | \(\frac {-\frac {3 B x}{8}-\frac {3 B x \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}{2}-\frac {15 B x \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}}{8}+\frac {15 B x \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{8}}{8}+\frac {3 B x \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{10}}{2}+\frac {3 B x \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{12}}{8}+\frac {\left (3 B -8 C \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{5}}{6 d}+\frac {\left (3 B +8 C \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{7}}{6 d}-\frac {\left (5 B -8 C \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{11}}{4 d}-\frac {\left (5 B +8 C \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{4 d}+\frac {\left (9 B -40 C \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{3}}{12 d}+\frac {\left (9 B +40 C \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{9}}{12 d}}{\left (1+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}\right )^{5} \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1\right )}\) | \(248\) |
Time = 0.26 (sec) , antiderivative size = 53, normalized size of antiderivative = 0.70 \[ \int \cos ^5(c+d x) \left (B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\frac {9 \, B d x + {\left (6 \, B \cos \left (d x + c\right )^{3} + 8 \, C \cos \left (d x + c\right )^{2} + 9 \, B \cos \left (d x + c\right ) + 16 \, C\right )} \sin \left (d x + c\right )}{24 \, d} \]
1/24*(9*B*d*x + (6*B*cos(d*x + c)^3 + 8*C*cos(d*x + c)^2 + 9*B*cos(d*x + c ) + 16*C)*sin(d*x + c))/d
\[ \int \cos ^5(c+d x) \left (B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\int \left (B + C \sec {\left (c + d x \right )}\right ) \cos ^{5}{\left (c + d x \right )} \sec {\left (c + d x \right )}\, dx \]
Time = 0.20 (sec) , antiderivative size = 57, normalized size of antiderivative = 0.75 \[ \int \cos ^5(c+d x) \left (B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\frac {3 \, {\left (12 \, d x + 12 \, c + \sin \left (4 \, d x + 4 \, c\right ) + 8 \, \sin \left (2 \, d x + 2 \, c\right )\right )} B - 32 \, {\left (\sin \left (d x + c\right )^{3} - 3 \, \sin \left (d x + c\right )\right )} C}{96 \, d} \]
1/96*(3*(12*d*x + 12*c + sin(4*d*x + 4*c) + 8*sin(2*d*x + 2*c))*B - 32*(si n(d*x + c)^3 - 3*sin(d*x + c))*C)/d
Leaf count of result is larger than twice the leaf count of optimal. 140 vs. \(2 (68) = 136\).
Time = 0.29 (sec) , antiderivative size = 140, normalized size of antiderivative = 1.84 \[ \int \cos ^5(c+d x) \left (B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\frac {9 \, {\left (d x + c\right )} B - \frac {2 \, {\left (15 \, B \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} - 24 \, C \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} - 9 \, B \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} - 40 \, C \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 9 \, B \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 40 \, C \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 15 \, B \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 24 \, C \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )}}{{\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 1\right )}^{4}}}{24 \, d} \]
1/24*(9*(d*x + c)*B - 2*(15*B*tan(1/2*d*x + 1/2*c)^7 - 24*C*tan(1/2*d*x + 1/2*c)^7 - 9*B*tan(1/2*d*x + 1/2*c)^5 - 40*C*tan(1/2*d*x + 1/2*c)^5 + 9*B* tan(1/2*d*x + 1/2*c)^3 - 40*C*tan(1/2*d*x + 1/2*c)^3 - 15*B*tan(1/2*d*x + 1/2*c) - 24*C*tan(1/2*d*x + 1/2*c))/(tan(1/2*d*x + 1/2*c)^2 + 1)^4)/d
Time = 15.25 (sec) , antiderivative size = 75, normalized size of antiderivative = 0.99 \[ \int \cos ^5(c+d x) \left (B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\frac {3\,B\,x}{8}+\frac {2\,C\,\sin \left (c+d\,x\right )}{3\,d}+\frac {3\,B\,\cos \left (c+d\,x\right )\,\sin \left (c+d\,x\right )}{8\,d}+\frac {B\,{\cos \left (c+d\,x\right )}^3\,\sin \left (c+d\,x\right )}{4\,d}+\frac {C\,{\cos \left (c+d\,x\right )}^2\,\sin \left (c+d\,x\right )}{3\,d} \]